#ifndef GD32F350G_START_H
#define GD32F350G_START_H
#include "gd32f3x0.h"
#include "gd32f3x0_usart.h"
#ifdef __cplusplus
extern "C" {
#endif

#define LED0_GPIO GPIOA
#define LED0_PIN GPIO_PIN_15

#define LED1_GPIO GPIOB
#define LED1_PIN GPIO_PIN_3

#define DBG_UART USART0
#define DBG_UART_baudrate 1152000
#define SEND(msg) UART_Send(DBG_UART,msg,sizeof(msg))


int BOARD_Clock_Init();
int BOARD_Clock_FullSpeed_Init();
int BOARD_GPIO_Init();
int BOARD_Peripherals_Init();
void BOARD_clock_108m_irc8m(void);
void UART_Send(uint32_t reg, const char *d, uint32_t len);

#ifdef __cplusplus
}
#endif

#endif /* GD32F350G_START_H */

